package com.rizzo.back.util.domain;

/**
 * TODO 
 */
public class SentenceData {

    private String initialSentence;

    private String[] tags;

    private String[] tokens;

    public String getInitialSentence() {
        return initialSentence;
    }

    public void setInitialSentence(String initialSentence) {
        this.initialSentence = initialSentence;
    }

    public String[] getTags() {
        return tags;
    }

    public void setTags(String[] tags) {
        this.tags = tags.clone();
    }

    public String[] getTokens() {
        return tokens;
    }

    public void setTokens(String[] tokens) {
        this.tokens = tokens.clone();
    }

    @Override
    public String toString() {
        StringBuffer toString = new StringBuffer("SentenceData{");
        toString.append("initialSentence='").append(initialSentence).append("\n");
        if(tags != null && tokens != null) {
            for (int i = 0; i < tokens.length; i++) {
                toString.append("TOKEN:").append(tokens[i]).append(" - ").append("tag:").append(tags[i]).append("\n");
            }
        }
        return toString.toString();
    }
}
